*{
  font-family: '微软雅黑', sans-serif;
  box-sizing: border-box;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 100vh;
}

.container{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .box{
  position: relative;
  width: 300px;
  height: 400px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-reflect: below 15px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
  margin: 0 30px;
}

.container .box:hover{
  color: #000;
}

.container .box::before{
  content: '';
  position: absolute;
  left: -10px;
  top: -10px;
  width: 100%;
  height: 100%;
  border:4px solid #fff;
  background: #000;
  filter: url(#wavy);
}
.container .box:hover:before{
  background: #fff;
  transition: 0.5s;
}
.container .box::after{
  content: '';
  position: absolute;
  left: -10px;
  top: -10px;
  width: 50%;
  height: 100%;
  border:4px solid #fff;
  border-right: none;
  background: rgba(255, 255, 255, 0.1);
  filter: url(#wavy);
}

.container .box .content{
  position: absolute;
  padding: 20px;
  text-align: center;
  transition: 0.5s;
}

svg{
  width: 0;
  height: 0;
}